Skip to content

Breakpoints in typescript is not working #1154

Closed
@kristian1969

Description

@kristian1969

Describe the bug
I am setting a breakpoint in metricsRecorder.ts line 330 BUT when running code the line is automatically changed to 224!

Ran "Debug: Diagnose Breakpoint Problems" and got the following report out:

Diagnose Breakpoint Problems Report

✅ This breakpoint was initially set in:

/work/git/daas-azure/shared/metrics/metricsRecorder.ts line 330 column 1

✅ In the runtime, the breakpoint was set in:

file:///work/git/daas-azure/shared/metrics/metricsRecorder.js line 301 column 5 via this regex

file:///work/git/daas-azure/shared/metrics/metricsRecorder.ts line 330 column 1 via this regex

❓ We sent the breakpoint, but it didn't bind to any locations. If this is unexpected:
Make sure that your program is loading or running this script. You can add a debugger; statement to check this: your program will pause when it hits it.
If your breakpoint is set in certain places, such as on the last empty line of a file, the runtime might not be able to find anywhere to place it.
Unless you run with --nolazy, Node.js might not resolve breakpoints for code it hasn't parsed yet.
If necessary, make sure your compiled files are up-to-date with your source files.

✅ This breakpoint was initially set in:

/work/git/daas-azure/shared/metrics/metricsRecorder.ts line 342 column 1

✅ In the runtime, the breakpoint was set in:

file:///work/git/daas-azure/shared/metrics/metricsRecorder.js line 313 column 5 via this regex

file:///work/git/daas-azure/shared/metrics/metricsRecorder.ts line 342 column 1 via this regex

✅ The runtime acknowledged and adjusted the breakpoint, and it mapped back to the following locations:

/work/git/daas-azure/shared/metrics/metricsRecorder.ts line 224 column 1
If this is not right, your compiled code might be out of date with your sources. If you don't think this is the case and something else is wrong, please open an issue!

VS Code Version: 1.63.0

Additional context
Running Ubuntu

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions